

package com.hazelcast.internal.services;

/**
 * Split brain protection service can ask for split brain protection information to the
 * {@link SplitBrainProtectionAwareService} to decide whether operation participates into a
 * split brain protection or not.
 */
public interface SplitBrainProtectionAwareService {

    /**
     * Gets the name of the split brain protection associated with specified operation name.
     *
     * @param operationName the operation name for which the split brain protection name is returned
     * @return name of the associated split brain protection, null if there is no associated split brain protection
     */
    String getSplitBrainProtectionName(String operationName);
}
